LearningSession.CurrentActivityKey Property

Gets the identifier of the current activity, as provided in the manifest. This is unique per session.

Parent Type: LearningSession

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public string CurrentActivityKey

{ get; }
Exceptions
Exception type Condition
InvalidOperationException

Thrown if there is no current activity in the session.

Remarks

When possible, use CurrentActivityId to refer to activities, as it will afford better performance.